package com.cskaoyan.mall.pay.dto;

import com.cskaoyan.mall.commons.exception.ValidateException;
import com.cskaoyan.mall.commons.result.AbstractRequest;
import com.cskaoyan.mall.pay.constant.PayRetCode;
import lombok.Data;


/**
 * @auther cskaoyan
 * @date 2022/8/3:0:19
 */
@Data
public class PayOrderCancelRequest extends AbstractRequest {

    private String orderId;

    @Override
    public void requestCheck() throws ValidateException {
        if (orderId == null ||orderId.isEmpty()) {
            throw new ValidateException(PayRetCode.SYS_PARAM_NOT_RIGHT.getCode()
            , PayRetCode.SYS_PARAM_NOT_RIGHT.getMsg());
        }
    }
}
